<html>
    <head>
        <canvas id="snake" width="608" height="608"></canvas>
        <script src="snake01.js"></script>
        <style>
        canvas{
            display: block;
            margin: 0 auto;
            border: 1px solid red;
        }
        </style>
    </head>
</html>